package com.wobito.pojo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author lambyang
 * @since 2024-09-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_device_log")
@AllArgsConstructor
@NoArgsConstructor
public class DeviceLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 柜格id
     */
    private Long latId;

    /**
     * 操作时间
     */
    private Date operTime;

    private Long personId;

    private String operThing;

    public DeviceLog(Long latId, Date operTime, Long personId, String operThing) {
        this.latId = latId;
        this.operTime = operTime;
        this.personId = personId;
        this.operThing = operThing;
    }

}
